package com.ycy.socket;

import com.corundumstudio.socketio.SocketIOClient;

import java.util.Map;

/**
 * @author PanBingYu
 * @description
 * @date 2022-01-18 17:53
 */


public class SocketIoSessionCache extends ExtendKeyBucketMap<String, String, SocketIOClient> {

    public SocketIOClient putCache(String key, String corpCode, SocketIOClient client) {
        return this.put(key, corpCode, client);
    }

    public SocketIOClient removeCache(String key) {
        return this.removeByRawKey(key);
    }

    public Map<String, SocketIOClient> getAllByCorpCode(String corpCode) {
        return this.getAllByExtKey(corpCode);
    }

}
